const state = {
    subjectEnum: {},
    paperTypeEnum: {
        1: '固定试卷',
        4: '时段试卷',
        6: '任务试卷'
    },
    questionTypeEnum: {
        1: '单选题',
        2: '多选题',
        3: '判断题'
            // 4: '填空题',
            // 5: '简答题'
            // 6: '病理图片模拟诊断题'
    },
    ageList: {
        1: '2015',
        2: '2017',
        3: '2018',
        4: '2019',
        5: '2020',
        6: '2021',
        7: '2022',
        8: '2023',
        9: '2024',
        10: '2025',
        11: '2026',
        12: '2027',
        31: '2028',
        32: '2029',
        33: '2030',
        34: '2031',
        35: '2032',
        41: '2033',
        42: '2034',
        43: '2035',
        44: '2036',
        45: '2037',
        51: '2038',
        52: '2039',
        53: '2040',
        54: '2041',
        55: '2042',
        55: '2043',
        55: '2044',
        55: '2045'
    },
    levelEnum: {
        1: '一年级',
        2: '二年级',
        3: '三年级',
        4: '四年级',
        5: '五年级',
        6: '六年级',
        7: '初一',
        8: '初二',
        9: '初三',
        10: '高一',
        11: '高二',
        12: '高三',
        31: '大一',
        32: '大二',
        33: '大三',
        34: '大四',
        35: '大五',
        41: '研一',
        42: '研二',
        43: '研三',
        44: '研四',
        45: '研五',
        51: '博一',
        52: '博二',
        53: '博三',
        54: '博四',
        55: '博五',
        55: '博六',
        55: '博七',
        55: '博八'
    },
    classEnum: {}
}

const mutations = {
    SET_SUBJECT_ENUM: (state, payload) => {
        state.subjectEnum = payload
    },
    SET_CLASS_ENUM: (state, payload) => {
        state.classEnum = payload
    }
}

const actions = {
    setSubjectEnum({ commit }, payload) {
        commit('SET_SUBJECT_ENUM', payload)
    },
    setClassEnum({ commit }, payload) {
        commit('SET_CLASS_ENUM', payload)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}